package com.mz.mattress.client.util;

import java.util.Date;

/**
 * 时间分量模型公式
 */
public class TimeModelUtils {

    private static double[] percentArr = { 0.82, 1.52, 2.13, 2.63, 3.07, 3.44, 3.75, 4.04, 4.29, 4.54, 4.75, 4.94, 5.1,
            5.26, 5.41, 5.56, 5.7, 5.84, 5.97, 6.1, 6.27, 6.51, 6.8, 7.18, 7.65, 8.21, 8.86, 9.6, 10.38, 11.13, 11.82,
            12.53, 13.18, 13.92, 14.64, 15.4, 16.15, 16.94, 17.76, 18.6, 19.44, 20.35, 21.26, 22.22, 23.24, 24.31,
            25.45, 26.71, 28.07, 29.56, 31.1, 32.61, 34.12, 35.59, 36.92, 38.12, 39.24, 40.29, 41.32, 42.45, 43.49,
            44.52, 45.57, 46.64, 47.74, 48.9, 50.12, 51.5, 53, 54.57, 56.3, 58.19, 60.17, 62.22, 64.21, 66.03, 67.91,
            69.86, 71.8, 73.78, 75.79, 77.87, 79.91, 81.97, 84.02, 86.11, 88.04, 89.86, 91.61, 93.18, 94.61, 95.94,
            97.11, 98.2, 99.18, 100 };
    
    /**
     * 每个分钟下发量正太图
     */
    private static double[] minuteArr={0.0324, 0.0616, 0.0887, 0.114, 0.1389, 0.1652, 0.1907, 0.2169, 0.2439, 0.2724, 0.3009, 0.3311, 0.3613, 0.3926, 0.4225, 0.4533, 0.4841, 0.5139, 0.5437, 0.5731, 0.6039, 0.6344, 0.6652, 0.6957, 0.7262, 0.7517, 0.7778, 0.8035, 0.8285, 0.8542, 0.8812, 0.9078, 0.9339, 0.9607, 0.9861, 1.0112, 1.036, 1.0608, 1.0857, 1.1126, 1.1391, 1.1647, 1.1892, 1.2137, 1.2365, 1.2603, 1.2845, 1.3088, 1.3329, 1.3575, 1.3817, 1.4052, 1.4293, 1.4545, 1.4783, 1.5012, 1.523, 1.5435, 1.5637, 1.5848, 1.6058, 1.6271, 1.6475, 1.6673, 1.6868, 1.7066, 1.7268, 1.7459, 1.7656, 1.785, 1.8033, 1.8214, 1.8394, 1.8584, 1.8781, 1.8984, 1.9189, 1.9395, 1.9606, 1.9807, 2.0014, 2.0198, 2.038, 2.0564, 2.0741, 2.0922, 2.1109, 2.1303, 2.15, 2.1703, 2.1893, 2.2084, 2.2265, 2.2437, 2.2612, 2.2787, 2.297, 2.3159, 2.3348, 2.3531, 2.3713, 2.3892, 2.407, 2.4252, 2.4433, 2.4614, 2.4804, 2.4992, 2.5184, 2.538, 2.5579, 2.578, 2.5977, 2.617, 2.6356, 2.6526, 2.6702, 2.6876, 2.7048, 2.7227, 2.7393, 2.755, 2.7706, 2.7849, 2.7995, 2.8138, 2.8282, 2.8433, 2.8577, 2.8718, 2.885, 2.8981, 2.9114, 2.9253, 2.9389, 2.9525, 2.9671, 2.9817, 2.9961, 3.0118, 3.0257, 3.0396, 3.0535, 3.0666, 3.0792, 3.0926, 3.1064, 3.1199, 3.1336, 3.1476, 3.1618, 3.1763, 3.1909, 3.2044, 3.2167, 3.2302, 3.2436, 3.2564, 3.2704, 3.2858, 3.3013, 3.3174, 3.3335, 3.3489, 3.3633, 3.3752, 3.3881, 3.4017, 3.4153, 3.4295, 3.4445, 3.4584, 3.4728, 3.4866, 3.5001, 3.5137, 3.5276, 3.5408, 3.5537, 3.5664, 3.579, 3.5916, 3.6046, 3.6188, 3.6324, 3.647, 3.6617, 3.6761, 3.6901, 3.7054, 3.719, 3.7341, 3.7485, 3.7622, 3.7758, 3.7894, 3.8026, 3.8166, 3.8305, 3.844, 3.8573, 3.872, 3.8863, 3.9005, 3.9148, 3.9289, 3.9428, 3.9573, 3.9709, 3.9845, 3.9985, 4.0116, 4.0249, 4.0384, 4.0527, 4.0672, 4.0821, 4.0966, 4.1111, 4.1258, 4.1403, 4.1557, 4.1711, 4.1855, 4.2009, 4.2161, 4.231, 4.2458, 4.2615, 4.2779, 4.2937, 4.3085, 4.3232, 4.338, 4.3525, 4.3668, 4.3813, 4.3956, 4.4098, 4.4233, 4.4364, 4.4496, 4.4629, 4.4766, 4.491, 4.5046, 4.5194, 4.5338, 4.5483, 4.5633, 4.5769, 4.5905, 4.6054, 4.6209, 4.6364, 4.6523, 4.6675, 4.6826, 4.6982, 4.7134, 4.7273, 4.7418, 4.757, 4.7722, 4.7888, 4.8053, 4.8201, 4.8341, 4.8488, 4.8633, 4.8781, 4.8932, 4.9091, 4.9244, 4.9395, 4.9555, 4.9717, 4.9874, 5.0037, 5.0192, 5.0349, 5.0524, 5.0699, 5.0881, 5.1059, 5.1231, 5.139, 5.1557, 5.1731, 5.1899, 5.2074, 5.2238, 5.2403, 5.2568, 5.2727, 5.2888, 5.3045, 5.321, 5.3374, 5.3534, 5.3699, 5.3862, 5.4022, 5.4186, 5.4352, 5.4523, 5.4689, 5.4852, 5.501, 5.5167, 5.5335, 5.5504, 5.5678, 5.5851, 5.6032, 5.6201, 5.6372, 5.655, 5.6716, 5.6879, 5.7034, 5.7205, 5.7365, 5.7535, 5.7705, 5.7869, 5.8041, 5.8221, 5.8395, 5.8573, 5.8741, 5.8904, 5.9075, 5.9242, 5.942, 5.9603, 5.9784, 5.9977, 6.0158, 6.0332, 6.0497, 6.0666, 6.0832, 6.1004, 6.1191, 6.1372, 6.1554, 6.1736, 6.1905, 6.209, 6.2289, 6.2483, 6.2683, 6.2868, 6.3054, 6.3228, 6.3397, 6.3566, 6.3739, 6.3912, 6.4093, 6.4268, 6.4445, 6.4645, 6.4855, 6.5071, 6.5288, 6.551, 6.573, 6.5938, 6.6154, 6.6356, 6.6556, 6.6753, 6.6948, 6.7147, 6.7353, 6.7551, 6.7752, 6.7951, 6.8144, 6.8347, 6.8534, 6.8735, 6.8946, 6.9157, 6.9368, 6.9573, 6.9764, 6.9972, 7.0187, 7.0405, 7.0619, 7.0831, 7.1022, 7.1207, 7.1409, 7.1594, 7.18, 7.2006, 7.2212, 7.2419, 7.2632, 7.284, 7.3039, 7.3233, 7.3427, 7.3631, 7.3838, 7.4042, 7.4246, 7.4463, 7.4673, 7.4877, 7.5088, 7.5301, 7.5525, 7.5759, 7.6001, 7.6252, 7.6501, 7.6766, 7.7049, 7.734, 7.764, 7.7963, 7.8289, 7.8621, 7.8966, 7.9295, 7.9616, 7.9923, 8.0241, 8.0566, 8.0897, 8.1215, 8.1554, 8.1885, 8.2206, 8.254, 8.2865, 8.3206, 8.354, 8.3878, 8.4205, 8.453, 8.4857, 8.5201, 8.5543, 8.588, 8.6225, 8.6586, 8.6949, 8.7326, 8.7731, 8.8146, 8.8569, 8.9017, 8.9461, 8.9918, 9.0389, 9.0868, 9.1359, 9.1871, 9.2381, 9.2911, 9.3443, 9.3978, 9.4512, 9.5043, 9.5583, 9.6124, 9.6671, 9.7236, 9.7811, 9.8386, 9.8962, 9.9538, 10.0115, 10.0693, 10.127, 10.1848, 10.2427, 10.3006, 10.3586, 10.4166, 10.4747, 10.5339, 10.5951, 10.6577, 10.7233, 10.7911, 10.8632, 10.9353, 11.0085, 11.0829, 11.1571, 11.2341, 11.3109, 11.3883, 11.4666, 11.5436, 11.6211, 11.6991, 11.7773, 11.8572, 11.9363, 12.0168, 12.0972, 12.1803, 12.2628, 12.3437, 12.4276, 12.5121, 12.5942, 12.6773, 12.76, 12.8429, 12.9267, 13.0096, 13.0928, 13.1783, 13.264, 13.3496, 13.4353, 13.521, 13.6068, 13.6927, 13.7786, 13.8646, 13.9506, 14.0368, 14.1232, 14.2101, 14.297, 14.385, 14.4742, 14.5641, 14.656, 14.7506, 14.8487, 14.9545, 15.0652, 15.1788, 15.2981, 15.4224, 15.5446, 15.6709, 15.7965, 15.921, 16.0451, 16.1708, 16.2962, 16.4232, 16.5496, 16.6724, 16.7952, 16.9162, 17.0377, 17.162, 17.2896, 17.4158, 17.5398, 17.6656, 17.7898, 17.9147, 18.0416, 18.1684, 18.2973, 18.4262, 18.554, 18.6794, 18.8026, 18.9293, 19.056, 19.1822, 19.3095, 19.4373, 19.564, 19.691, 19.821, 19.951, 20.0781, 20.2063, 20.3337, 20.4604, 20.5883, 20.717, 20.845, 20.9739, 21.1019, 21.229, 21.3551, 21.4809, 21.6058, 21.7332, 21.8605, 21.9868, 22.1162, 22.2465, 22.3764, 22.5066, 22.6353, 22.7628, 22.8918, 23.0212, 23.1488, 23.277, 23.4063, 23.5346, 23.6649, 23.7911, 23.9205, 24.0486, 24.1768, 24.3039, 24.4311, 24.5582, 24.6834, 24.8103, 24.9384, 25.0624, 25.1906, 25.3194, 25.4496, 25.5789, 25.7083, 25.8371, 25.9658, 26.0924, 26.2197, 26.3446, 26.471, 26.5972, 26.7247, 26.8523, 26.9798, 27.1091, 27.237, 27.3642, 27.4916, 27.6194, 27.7466, 27.8769, 28.0038, 28.1368, 28.267, 28.3966, 28.525, 28.6531, 28.7823, 28.9124, 29.0441, 29.1748, 29.3048, 29.4344, 29.5623, 29.6917, 29.8212, 29.9508, 30.082, 30.2156, 30.3469, 30.4772, 30.6088, 30.7375, 30.8645, 30.9953, 31.1264, 31.2568, 31.3872, 31.5152, 31.6464, 31.7744, 31.9042, 32.034, 32.1639, 32.2921, 32.4192, 32.5443, 32.6663, 32.7885, 32.9106, 33.0329, 33.1551, 33.2775, 33.4045, 33.5294, 33.6555, 33.7852, 33.9117, 34.038, 34.1625, 34.2884, 34.4128, 34.5371, 34.6596, 34.7833, 34.9076, 35.0325, 35.1608, 35.289, 35.417, 35.5469, 35.6746, 35.8028, 35.9308, 36.0571, 36.1833, 36.3106, 36.4357, 36.562, 36.6904, 36.8193, 36.9482, 37.0763, 37.2066, 37.3361, 37.4668, 37.5971, 37.7279, 37.858, 37.9899, 38.1224, 38.2578, 38.395, 38.5318, 38.669, 38.8039, 38.9387, 39.0737, 39.2091, 39.3446, 39.4807, 39.6186, 39.7543, 39.8909, 40.0289, 40.1662, 40.3034, 40.4408, 40.5773, 40.712, 40.8457, 40.9809, 41.1171, 41.2526, 41.3861, 41.5221, 41.6562, 41.7926, 41.9295, 42.0611, 42.1924, 42.3249, 42.4581, 42.5921, 42.7241, 42.8566, 42.9875, 43.1216, 43.256, 43.3928, 43.5293, 43.6654, 43.7997, 43.9328, 44.0657, 44.1972, 44.3324, 44.4678, 44.6014, 44.7364, 44.8717, 45.0065, 45.1421, 45.2817, 45.4176, 45.5524, 45.6855, 45.8214, 45.9529, 46.0869, 46.2184, 46.349, 46.4766, 46.6051, 46.7337, 46.8641, 46.9936, 47.1235, 47.2548, 47.3848, 47.5159, 47.6478, 47.7791, 47.9113, 48.0404, 48.1722, 48.3049, 48.4363, 48.5678, 48.6957, 48.828, 48.9602, 49.0924, 49.2239, 49.3559, 49.487, 49.6208, 49.7524, 49.8853, 50.0197, 50.1524, 50.2833, 50.4153, 50.5461, 50.6763, 50.8075, 50.9365, 51.0681, 51.1983, 51.3291, 51.4589, 51.5882, 51.72, 51.8502, 51.9828, 52.1136, 52.2466, 52.3783, 52.5081, 52.6412, 52.7736, 52.9061, 53.0379, 53.1668, 53.2922, 53.4149, 53.5366, 53.6576, 53.7777, 53.9001, 54.0246, 54.1477, 54.2694, 54.3921, 54.514, 54.635, 54.7545, 54.8735, 54.9903, 55.1079, 55.2272, 55.3444, 55.4664, 55.5882, 55.7114, 55.8322, 55.9511, 56.0725, 56.1928, 56.3108, 56.4295, 56.5487, 56.6667, 56.7841, 56.9005, 57.0178, 57.1357, 57.2546, 57.3746, 57.495, 57.6149, 57.7361, 57.8605, 57.9831, 58.1056, 58.2293, 58.3513, 58.4747, 58.5974, 58.7208, 58.8447, 58.9689, 59.0908, 59.2149, 59.3361, 59.4576, 59.577, 59.6992, 59.8205, 59.9443, 60.0656, 60.1878, 60.3121, 60.4351, 60.5595, 60.6811, 60.8048, 60.9288, 61.0531, 61.1766, 61.2967, 61.4186, 61.5426, 61.6666, 61.7881, 61.9101, 62.033, 62.1575, 62.2861, 62.4133, 62.5377, 62.6622, 62.7853, 62.9074, 63.0304, 63.1538, 63.2768, 63.4011, 63.5244, 63.6484, 63.7726, 63.8969, 64.0217, 64.1484, 64.2763, 64.4032, 64.5299, 64.6555, 64.7807, 64.9035, 65.0281, 65.154, 65.2786, 65.4046, 65.5306, 65.6572, 65.7837, 65.9098, 66.0361, 66.1615, 66.2875, 66.4142, 66.5399, 66.666, 66.7918, 66.9189, 67.0458, 67.1723, 67.2982, 67.4216, 67.5469, 67.6722, 67.7996, 67.9249, 68.0505, 68.1727, 68.2951, 68.4164, 68.5356, 68.6514, 68.7655, 68.8775, 68.989, 69.0983, 69.2077, 69.3182, 69.4294, 69.5393, 69.6494, 69.7588, 69.8681, 69.9782, 70.089, 70.2032, 70.3146, 70.4251, 70.5351, 70.6459, 70.7558, 70.8674, 70.9767, 71.086, 71.1939, 71.3023, 71.4131, 71.5244, 71.6348, 71.745, 71.8551, 71.9644, 72.0758, 72.185, 72.2962, 72.4055, 72.5126, 72.6222, 72.7318, 72.8406, 72.9466, 73.0537, 73.1601, 73.2647, 73.3687, 73.4738, 73.5807, 73.6872, 73.793, 73.9018, 74.0081, 74.1191, 74.2262, 74.3319, 74.435, 74.5423, 74.6464, 74.7491, 74.8522, 74.9504, 75.0459, 75.1388, 75.228, 75.3162, 75.4041, 75.4897, 75.5766, 75.6617, 75.748, 75.8349, 75.9237, 76.0125, 76.0993, 76.1868, 76.2718, 76.3571, 76.4422, 76.5301, 76.6157, 76.7022, 76.7885, 76.875, 76.9625, 77.0495, 77.1356, 77.2243, 77.3122, 77.4019, 77.4896, 77.5784, 77.6673, 77.7568, 77.8439, 77.9307, 78.0173, 78.1026, 78.1861, 78.2698, 78.3527, 78.4365, 78.52, 78.6038, 78.6864, 78.7696, 78.8544, 78.9382, 79.0239, 79.1077, 79.1928, 79.2792, 79.3653, 79.45, 79.5352, 79.6209, 79.7045, 79.7887, 79.8733, 79.9573, 80.0414, 80.122, 80.2002, 80.2769, 80.3519, 80.4279, 80.5028, 80.5776, 80.6508, 80.7168, 80.7755, 80.8415, 80.9074, 80.9734, 81.037, 81.1006, 81.1709, 81.2436, 81.3168, 81.3875, 81.4608, 81.5346, 81.6099, 81.6839, 81.7571, 81.8318, 81.9046, 81.9787, 82.0464, 82.1134, 82.1865, 82.2593, 82.3335, 82.4102, 82.4835, 82.5557, 82.6293, 82.7015, 82.7735, 82.8471, 82.9205, 82.9944, 83.0675, 83.1392, 83.2118, 83.2847, 83.3541, 83.4233, 83.494, 83.5656, 83.6358, 83.7092, 83.7816, 83.8525, 83.924, 83.9925, 84.0583, 84.1249, 84.1928, 84.2614, 84.3281, 84.3966, 84.4651, 84.5343, 84.6078, 84.6837, 84.7623, 84.8425, 84.9176, 84.9922, 85.0662, 85.1407, 85.213, 85.2858, 85.3605, 85.4326, 85.5033, 85.579, 85.6535, 85.7289, 85.8041, 85.8791, 85.9525, 86.0257, 86.0998, 86.1714, 86.243, 86.3147, 86.3869, 86.4571, 86.5284, 86.5999, 86.6697, 86.7396, 86.8089, 86.8785, 86.9487, 87.0187, 87.0903, 87.1607, 87.2303, 87.3023, 87.3735, 87.4475, 87.5173, 87.5908, 87.661, 87.7337, 87.8025, 87.8711, 87.9404, 88.01, 88.0797, 88.1496, 88.2194, 88.2896, 88.3574, 88.4247, 88.4929, 88.5628, 88.6319, 88.7027, 88.7705, 88.8398, 88.9084, 88.9752, 89.0427, 89.1103, 89.1775, 89.246, 89.3155, 89.3832, 89.4518, 89.5214, 89.5906, 89.6596, 89.7271, 89.7945, 89.8609, 89.9254, 89.9921, 90.0583, 90.1258, 90.1939, 90.2615, 90.3282, 90.3963, 90.4638, 90.5315, 90.5977, 90.662, 90.727, 90.7891, 90.8524, 90.9172, 90.9832, 91.0502, 91.1148, 91.1806, 91.2455, 91.3097, 91.375, 91.4413, 91.5078, 91.574, 91.64, 91.706, 91.7707, 91.8351, 91.8985, 91.9627, 92.0282, 92.0946, 92.1612, 92.2272, 92.2938, 92.3615, 92.429, 92.4968, 92.565, 92.6309, 92.6966, 92.7598, 92.821, 92.8815, 92.9421, 93.0035, 93.0663, 93.1279, 93.1884, 93.2496, 93.3087, 93.3662, 93.4249, 93.4838, 93.5437, 93.6008, 93.6603, 93.7183, 93.776, 93.8345, 93.8914, 93.9491, 94.007, 94.0653, 94.1236, 94.1803, 94.2359, 94.2909, 94.3465, 94.4032, 94.4598, 94.5158, 94.572, 94.627, 94.6816, 94.7383, 94.7931, 94.8473, 94.9032, 94.9595, 95.0151, 95.0716, 95.1274, 95.1838, 95.239, 95.2943, 95.3485, 95.4018, 95.4564, 95.5102, 95.5657, 95.6213, 95.6757, 95.7294, 95.7834, 95.8357, 95.8879, 95.9394, 95.9908, 96.0395, 96.0869, 96.131, 96.1752, 96.2184, 96.2604, 96.3016, 96.3401, 96.3806, 96.4215, 96.4629, 96.5035, 96.5424, 96.5807, 96.6187, 96.6565, 96.6958, 96.7351, 96.7747, 96.8142, 96.8542, 96.8938, 96.933, 96.9718, 97.0105, 97.0486, 97.0865, 97.124, 97.1615, 97.1993, 97.2367, 97.2741, 97.3121, 97.3509, 97.3886, 97.4266, 97.4651, 97.503, 97.5396, 97.5775, 97.6144, 97.6526, 97.6896, 97.7265, 97.7632, 97.8014, 97.8389, 97.8763, 97.9119, 97.948, 97.9841, 98.0199, 98.0558, 98.0921, 98.1285, 98.1655, 98.204, 98.2406, 98.2765, 98.3114, 98.3444, 98.3757, 98.4069, 98.438, 98.4687, 98.4986, 98.5282, 98.5573, 98.5869, 98.6162, 98.6458, 98.6765, 98.7062, 98.736, 98.7651, 98.7934, 98.8218, 98.8493, 98.8763, 98.9052, 98.9339, 98.9636, 98.9923, 99.02, 99.0475, 99.0742, 99.0998, 99.1259, 99.1524, 99.1779, 99.2058, 99.2334, 99.2616, 99.2904, 99.3192, 99.3481, 99.3755, 99.4035, 99.4316, 99.4578, 99.4847, 99.5121, 99.5385, 99.5659, 99.5927, 99.6191, 99.6458, 99.6722, 99.6975, 99.7226, 99.7485, 99.7731, 99.7982, 99.8232, 99.8484, 99.8728, 99.8971, 99.9236, 99.9502, 99.9751, 100.0};

    /**
     * 9点到21点正太图
     */
    private static double[] ninetonineArr={0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.1288, 0.2653, 0.4067, 0.5510, 0.7010, 0.8560, 1.0089, 1.1659, 1.3222, 1.4774, 1.6322, 1.7886, 1.9447, 2.1024, 2.2595, 2.4130, 2.5665, 2.7182, 2.8704, 3.0254, 3.1837, 3.3406, 3.4953, 3.6518, 3.8067, 3.9623, 4.1199, 4.2774, 4.4370, 4.5966, 4.7551, 4.9112, 5.0651, 5.2225, 5.3799, 5.5368, 5.6948, 5.8533, 6.0107, 6.1684, 6.3291, 6.4898, 6.6476, 6.8065, 6.9646, 7.1220, 7.2806, 7.4400, 7.5987, 7.7583, 7.9170, 8.0748, 8.2316, 8.3881, 8.5437, 8.7018, 8.8598, 9.0168, 9.1769, 9.3379, 9.4985, 9.6594, 9.8188, 9.9770, 10.1367, 10.2968, 10.4551, 10.6140, 10.7740, 10.9330, 11.0940, 11.2509, 11.4110, 11.5698, 11.7287, 11.8865, 12.0444, 12.2022, 12.3581, 12.5157, 12.6745, 12.8292, 12.9881, 13.1476, 13.3085, 13.4685, 13.6286, 13.7881, 13.9475, 14.1048, 14.2628, 14.4184, 14.5755, 14.7324, 14.8906, 15.0489, 15.2071, 15.3671, 15.5257, 15.6836, 15.8417, 16.0002, 16.1581, 16.3191, 16.4767, 16.6404, 16.8013, 16.9616, 17.1207, 17.2795, 17.4394, 17.6002, 17.7626, 17.9240, 18.0847, 18.2450, 18.4036, 18.5637, 18.7239, 18.8842, 19.0461, 19.2104, 19.3724, 19.5334, 19.6957, 19.8551, 20.0128, 20.1743, 20.3361, 20.4972, 20.6583, 20.8170, 20.9789, 21.1376, 21.2981, 21.4586, 21.6192, 21.7781, 21.9359, 22.0917, 22.2444, 22.3973, 22.5501, 22.7031, 22.8560, 23.0091, 23.1668, 23.3224, 23.4792, 23.6396, 23.7968, 23.9538, 24.1090, 24.2656, 24.4207, 24.5757, 24.7289, 24.8833, 25.0383, 25.1939, 25.3529, 25.5118, 25.6705, 25.8311, 25.9895, 26.1484, 26.3071, 26.4641, 26.6210, 26.7790, 26.9348, 27.0918, 27.2509, 27.4105, 27.5701, 27.7289, 27.8899, 28.0501, 28.2115, 28.3725, 28.5340, 28.6948, 28.8574, 29.0206, 29.1867, 29.3546, 29.5221, 29.6900, 29.8556, 30.0211, 30.1868, 30.3529, 30.5191, 30.6859, 30.8545, 31.0209, 31.1882, 31.3569, 31.5249, 31.6928, 31.8609, 32.0281, 32.1935, 32.3579, 32.5238, 32.6907, 32.8569, 33.0211, 33.1878, 33.3526, 33.5197, 33.6873, 33.8496, 34.0116, 34.1748, 34.3387, 34.5034, 34.6661, 34.8293, 34.9909, 35.1557, 35.3208, 35.4883, 35.6555, 35.8223, 35.9873, 36.1511, 36.3147, 36.4769, 36.6428, 36.8089, 36.9732, 37.1389, 37.3049, 37.4704, 37.6367, 37.8070, 37.9736, 38.1391, 38.3029, 38.4695, 38.6317, 38.7964, 38.9586, 39.1199, 39.2782, 39.4374, 39.5967, 39.7578, 39.9180, 40.0786, 40.2406, 40.4013, 40.5631, 40.7257, 40.8877, 41.0506, 41.2104, 41.3729, 41.5363, 41.6984, 41.8606, 42.0192, 42.1822, 42.3451, 42.5080, 42.6702, 42.8329, 42.9947, 43.1592, 43.3215, 43.4851, 43.6502, 43.8136, 43.9752, 44.1379, 44.2994, 44.4603, 44.6222, 44.7819, 44.9442, 45.1051, 45.2666, 45.4271, 45.5871, 45.7496, 45.9105, 46.0738, 46.2353, 46.3990, 46.5614, 46.7219, 46.8857, 47.0488, 47.2120, 47.3745, 47.5341, 47.6902, 47.8436, 47.9960, 48.1477, 48.2985, 48.4516, 48.6068, 48.7606, 48.9130, 49.0664, 49.2190, 49.3707, 49.5209, 49.6706, 49.8181, 49.9664, 50.1164, 50.2643, 50.4170, 50.5695, 50.7234, 50.8749, 51.0245, 51.1766, 51.3276, 51.4763, 51.6257, 51.7756, 51.9243, 52.0724, 52.2195, 52.3675, 52.5161, 52.6657, 52.8164, 52.9675, 53.1181, 53.2700, 53.4251, 53.5784, 53.7316, 53.8860, 54.0387, 54.1928, 54.3462, 54.5003, 54.6549, 54.8098, 54.9624, 55.1172, 55.2691, 55.4213, 55.5714, 55.7243, 55.8763, 56.0308, 56.1828, 56.3357, 56.4907, 56.6444, 56.7995, 56.9518, 57.1062, 57.2609, 57.4159, 57.5701, 57.7209, 57.8735, 58.0282, 58.1829, 58.3351, 58.4878, 58.6414, 58.7966, 58.9559, 59.1138, 59.2689, 59.4241, 59.5779, 59.7307, 59.8844, 60.0385, 60.1922, 60.3472, 60.5012, 60.6559, 60.8108, 60.9658, 61.1213, 61.2787, 61.4373, 61.5949, 61.7523, 61.9086, 62.0645, 62.2180, 62.3733, 62.5299, 62.6852, 62.8419, 62.9986, 63.1559, 63.3131, 63.4699, 63.6269, 63.7830, 63.9397, 64.0971, 64.2535, 64.4103, 64.5668, 64.7246, 64.8822, 65.0394, 65.1960, 65.3501, 65.5061, 65.6621, 65.8202, 65.9762, 66.1325, 66.2854, 66.4385, 66.5905, 66.7404, 66.8869, 67.0317, 67.1744, 67.3166, 67.4566, 67.5967, 67.7379, 67.8798, 68.0204, 68.1612, 68.3013, 68.4413, 68.5821, 68.7236, 68.8685, 69.0106, 69.1518, 69.2925, 69.4340, 69.5746, 69.7169, 69.8569, 69.9969, 70.1355, 70.2746, 70.4161, 70.5581, 70.6992, 70.8401, 70.9809, 71.1209, 71.2630, 71.4029, 71.5448, 71.6848, 71.8226, 71.9629, 72.1032, 72.2427, 72.3794, 72.5172, 72.6543, 72.7896, 72.9243, 73.0601, 73.1977, 73.3349, 73.4714, 73.6109, 73.7479, 73.8896, 74.0274, 74.1638, 74.2976, 74.4356, 74.5704, 74.7038, 74.8376, 74.9665, 75.0927, 75.2163, 75.3362, 75.4551, 75.5737, 75.6900, 75.8076, 75.9234, 76.0404, 76.1580, 76.2775, 76.3970, 76.5145, 76.6327, 76.7484, 76.8644, 76.9802, 77.0988, 77.2151, 77.3323, 77.4493, 77.5665, 77.6847, 77.8024, 77.9192, 78.0386, 78.1572, 78.2776, 78.3960, 78.5155, 78.6351, 78.7553, 78.8731, 78.9906, 79.1079, 79.2239, 79.3381, 79.4525, 79.5661, 79.6806, 79.7948, 79.9093, 80.0226, 80.1365, 80.2520, 80.3665, 80.4829, 80.5974, 80.7132, 80.8303, 80.9471, 81.0625, 81.1784, 81.2948, 81.4091, 81.5240, 81.6393, 81.7540, 81.8688, 81.9801, 82.0890, 82.1964, 82.3021, 82.4088, 82.5144, 82.6199, 82.7238, 82.8205, 82.9099, 83.0066, 83.1032, 83.1999, 83.2942, 83.3885, 83.4895, 83.5929, 83.6968, 83.7982, 83.9022, 84.0067, 84.1127, 84.2174, 84.3213, 84.4267, 84.5302, 84.6350, 84.7334, 84.8311, 84.9349, 85.0384, 85.1433, 85.2507, 85.3547, 85.4576, 85.5619, 85.6648, 85.7675, 85.8718, 85.9759, 86.0805, 86.1843, 86.2867, 86.3900, 86.4936, 86.5937, 86.6936, 86.7950, 86.8973, 86.9982, 87.1023, 87.2054, 87.3070, 87.4092, 87.5084, 87.6049, 87.7022, 87.8008, 87.9001, 87.9975, 88.0967, 88.1959, 88.2958, 88.4000, 88.5066, 88.6159, 88.7268, 88.8326, 88.9379, 89.0426, 89.1478, 89.2508, 89.3543, 89.4597, 89.5625, 89.6639, 89.7703, 89.8755, 89.9816, 90.0875, 90.1932, 90.2973, 90.4012, 90.5060, 90.6083, 90.7106, 90.8130, 90.9159, 91.0168, 91.1188, 91.2210, 91.3215, 91.4221, 91.5221, 91.6224, 91.7233, 91.8240, 91.9263, 92.0274, 92.1277, 92.2304, 92.3323, 92.4370, 92.5375, 92.6417, 92.7426, 92.8460, 92.9455, 93.0448, 93.1448, 93.2451, 93.3455, 93.4461, 93.5466, 93.6475, 93.7460, 93.8440, 93.9429, 94.0435, 94.1433, 94.2448, 94.3433, 94.4433, 94.5426, 94.6401, 94.7383, 94.8366, 94.9345, 95.0337, 95.1339, 95.2323, 95.3316, 95.4319, 95.5318, 95.6315, 95.7297, 95.8278, 95.9249, 96.0201, 96.1175, 96.2144, 96.3126, 96.4114, 96.5097, 96.6071, 96.7059, 96.8041, 96.9025, 96.9994, 97.0944, 97.1901, 97.2829, 97.3769, 97.4724, 97.5691, 97.6668, 97.7621, 97.8586, 97.9542, 98.0491, 98.1451, 98.2421, 98.3393, 98.4362, 98.5329, 98.6296, 98.7250, 98.8201, 98.9142, 99.0091, 99.1053, 99.2024, 99.2997, 99.3964, 99.4937, 99.5921, 99.6903, 99.7888, 99.8877, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100};


    
    /**
     * 
     * 获取每天某个时间段最大的的数量
     * @author <a href="mailto:zhaihuilin@zhexinit.com" >翟惠林</a>
     * @param taskNum   一天的总量
     * @param dateTime  时间
     * @return
     */
    public static int genMaxNumByTime(int taskNum,Date dateTime) {
        Date day=new Date(dateTime.getYear(), dateTime.getMonth(), dateTime.getDate());
        long t=dateTime.getTime();
        long t1 = day.getTime();
        int index = (int) ((t - t1) % 86400000 / (15 * 60 * 1000));
        return (int) (taskNum * percentArr[index] / 100);
    }
    
    public static void main(String args[]){
//    	Date date=DateUtil.getCurrentYmdHmsDate("2017-11-22 23:55:52", DateUtil.DATE_PATTEN_YY_MM_DD_HHMMSS);
//        int maxNum=genMinMaxNumByTime(10000, date);
//        System.out.println(maxNum);

        System.out.println(percentArr.length);

    }

    /**
     * 
     * 获取当前分钟在每天某个时间段最大的的数量
     * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
     * @param taskNum   一天的总量
     * @param dateTime  时间
     * @return
     */
    public static int genMinMaxNumByTime(int taskNum,Date dateTime) {
        Date day=new Date(dateTime.getYear(), dateTime.getMonth(), dateTime.getDate());
        long t=dateTime.getTime();
        long t1 = day.getTime();
        int index = (int) ((t - t1) % 86400000 / (60 * 1000));
        return (int) (taskNum * minuteArr[index] / 100);
    }
    
    
    /**
     * 
     * 获取当前分钟在每天某个时间段最大的的数量
     * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
     * @param taskNum   一天的总量
     * @param dateTime  时间
     * @return
     */
    public static int genNineToNineMinMaxNumByTime(int taskNum,Date dateTime) {
        Date day=new Date(dateTime.getYear(), dateTime.getMonth(), dateTime.getDate());
        long t=dateTime.getTime();
        long t1 = day.getTime();
        int index = (int) ((t - t1) % 86400000 / (60 * 1000));
        return (int) (taskNum * ninetonineArr[index] / 100);
    }
    
}
